// EditButton.h
//
#ifndef EDITBUTTON_H
#define EDITBUTTON_H

#include <QImage>
#include "GUIElement.h"

namespace IDS {
namespace IDEAS {
namespace OpenGLView {
namespace GUIElements {

class EditButton : public GUIElement
{
private:
	int width, height;
	QRectF rect;
	QImage image;

	bool moved;

	virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
	virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
	virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
	virtual void wheelEvent(QGraphicsSceneWheelEvent *event);

public:
	EditButton();
	virtual ~EditButton();

	QRectF boundingRect() const;
	void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *);

	bool isMoved()			{return moved;}
	void setMoved( bool m ) {moved = m;}
};

}}}}

#endif